package com.sss.springcloud.service.impl;

import com.sss.springcloud.common.Result;
import com.sss.springcloud.service.AccountService;
import com.sss.springcloud.service.StorageService;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author sss , StorageService
 * @date 2020-03-14 17:24
 **/
@Component
public class AccountServiceFeignFallback implements AccountService,StorageService {

    public Result decrease(Long productId, Integer count) {
        return Result.fail(440,"服务正在阻塞，请稍后再试(T_T)！！！");
    }

    public Result decrease(Long userId, BigDecimal money) {
        return Result.fail(440,"服务正在阻塞，请稍后再试(T_T)！！！");
    }
}
